import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: r => require.ensure([], () =>
          r(require('@/components/home'))
        , 'home')
    },
    {
      path: '/question',
      component: r => require.ensure([], () =>
          r(require('@/components/question'))
        , 'question')
    },
    {
      path: '/payment',
      component: r => require.ensure([], () =>
          r(require('@/components/payment'))
        , 'payment')
    },
    {
      path: '/expertDetails',
      component: r => require.ensure([], () =>
          r(require('@/components/expertDetails'))
        , 'expertDetails')
    },
    {
      path: '/myExpert',
      component: r => require.ensure([], () =>
          r(require('@/components/myExpert'))
        , 'myExpert')
    },
    {
      path: '/extract',
      component: r => require.ensure([], () =>
          r(require('@/components/extract'))
        , 'extract')
    },
    {
      path: '/personDetails',
      component: r => require.ensure([], () =>
          r(require('@/components/personDetails'))
        , 'personDetails')
    },
    {
      path: '/test',
      component: r => require.ensure([], () =>
          r(require('@/components/test'))
        , 'test')
    },
    {
      path: '/personDate',
      component: r => require.ensure([], () =>
          r(require('@/components/base/personDate'))
        , 'personDate')
    },
    {
      path: '/trapezoid',
      component: r => require.ensure([], () =>
          r(require('@/components/base/trapezoid'))
        , 'trapezoid')
    },
    {
      path: '/myCourse',
      component: r => require.ensure([], () =>
          r(require('@/components/base/myCourse'))
        , 'myCourse')
    },
    {
      path: '/classRoomDetails',
      component: r => require.ensure([], () =>
          r(require('@/components/classRoomDetails'))
        , 'classRoomDetails')
    },
    {
      path: '/editIndent',
      component: r => require.ensure([], () =>
          r(require('@/components/editIndent'))
        , 'editIndent')
    },
    {
      path: '/indentFinish',
      component: r => require.ensure([], () =>
          r(require('@/components/indentFinish'))
        , 'indentFinish')
    },
    {
      path: '/indentCourse',
      component: r => require.ensure([], () =>
          r(require('@/components/indentCourse'))
        , 'indentCourse')
    },
    {
      path: '/agreeSee',
      component: r => require.ensure([], () =>
          r(require('@/components/agreeSee'))
        , 'agreeSee')
    },
    {
      path: '/meetUp',
      component: r => require.ensure([], () =>
          r(require('@/components/meetUp'))
        , 'meetUp')
    },
    {
      path: '/person',
      component: r => require.ensure([], () =>
          r(require('@/components/person'))
        , 'person')
    },
    {
      path: '/myApptExpert',
      component: r => require.ensure([], () =>
          r(require('@/components/myApptExpert'))
        , 'myApptExpert')
    },
    {
      path: '/abolish',
      component: r => require.ensure([], () =>
          r(require('@/components/abolish'))
        , 'abolish')
    },
    {
      path: '/buyContent',
      component: r => require.ensure([], () =>
          r(require('@/components/buyContent'))
        , 'buyContent')
    },
    {
      path: '/myQuestion',
      component: r => require.ensure([], () =>
          r(require('@/components/myQuestion'))
        , 'myQuestion')
    },
    {
      path: '/applyList',
      component: r => require.ensure([], () =>
          r(require('@/components/applyList'))
        , 'applyList')
    },
    {
      path: '/theme',
      component: r => require.ensure([], () =>
          r(require('@/components/theme'))
        , 'theme')
    },
    {
      path: '/becomeExpert',
      component: r => require.ensure([], () =>
          r(require('@/components/becomeExpert'))
        , 'becomeExpert')
    },
    {
      path: '/recommendedUser',
      component: r => require.ensure([], () =>
          r(require('@/components/recommendedUser'))
        , 'recommendedUser')
    },
    {
      path: '/friendList',
      component: r => require.ensure([], () =>
          r(require('@/components/friendList'))
        , 'friendList')
    },
    {
      path: '/grade',
      component: r => require.ensure([], () =>
          r(require('@/components/grade'))
        , 'grade')
    },
    {
      path: '/myProgress',
      component: r => require.ensure([], () =>
          r(require('@/components/base/myProgress'))
        , 'myProgress')
    },
    {
      path: '/myStar',
      component: r => require.ensure([], () =>
          r(require('@/components/base/myStar'))
        , 'myStar')
    },
    {
      path: '/changeTheme',
      component: r => require.ensure([], () =>
          r(require('@/components/changeTheme'))
        , 'changeTheme')
    },
    {
      path: '/voice',
      component: r => require.ensure([], () =>
          r(require('@/components/voice'))
        , 'voice')
    },
  ]
})
